package com.soft.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.soft.entity.SensitiveWord;

@Mapper
public interface SensitiveWordMapper extends BaseMapper<SensitiveWord> {
    
    /**
     * 获取所有激活状态的敏感词
     */
    @Select("SELECT * FROM sensitive_word WHERE status = 'active' ORDER BY word")
    List<SensitiveWord> selectActiveSensitiveWords();
}